package com.it.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@CrossOrigin
@RequestMapping("t1")
@RestController
public class TestController {

    // 3
    @GetMapping("test")
    public String t1() {
        return new Date().toString();
    }
}
